package com.fengzheng.basic.model.common;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author liht
 * @date 2022/3/29 9:37 下午
 */
@Data
public class BasePo {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @TableLogic(delval = "now()", value = "null")
    private LocalDateTime deleted;

}
